const path = require('path');
const UnusedCodePlugin = require('../plugins/UnusedCodePlugin');

module.exports = {
  mode: 'production',
  entry: './test/src/example.js',
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'bundle.js'
  },
  optimization: {
    minimize: false
  },
  plugins: [
    new UnusedCodePlugin({
      debug: true,
      removeConsole: true,
      removeUnusedImports: true,
      removeDeadCode: true
    })
  ],
  devtool: 'source-map'
}; 